//
// Created by dong on 2025/10/22.
//

#include "SEllipse.h"

SEllipse::SEllipse(SDL_Rect rect, SDL_Color color):m_name("Ellipse")
{
    setColor(color);
    m_rect = rect;
}

void SEllipse::render(SDL_Renderer* render)
{
    SDL_SetRenderDrawColor(render,m_color.r,m_color.g,m_color.b,0);
    SDL_RenderDrawEllipse(render,&m_rect);
}

string SEllipse::name() const
{
    return m_name;
}
